package cn.wind.xboot.logic.cli.service;

import cn.wind.xboot.logic.cli.dto.CliDto;
import cn.wind.xboot.logic.cli.entity.CliClient;
import cn.wind.xboot.logic.dto.CliStoreDto;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 平台会员表 服务类
 * </p>
 *
 * @author xukk
 * @since 2018-06-19
 */
public interface ICliClientService extends IService<CliClient> {
    /**
     * 更新accountNonLocked属性
     *
     * @param accountNonLocked
     * @param username
     */
    boolean updateForAccountNonLocked(Boolean accountNonLocked, String username);

    /**
     * 根据用户名获取用户
     *
     * @param username
     * @return
     */
    CliClient findByUsername(String username);

    boolean updatePassword(Long id,String password);

    boolean saveEntity(CliClient cliClient);

    CliClient findCliInfo(Long id);

    IPage<CliClient> findByCondition(IPage page, Map<String, Object> var1);

    CliStoreDto findById(Long id);


    List<CliDto> findCliAll();

    CliClient findCliById(Long cliId);
}
